import request from '@/utils/request'

/**
 * get请求
 * @param url
 * @param params
 * @returns {*}
 */
const get = (url, params) => {
  return request({
    url: url,
    method: 'get',
    params: params
  })
}

/**
 * post请求
 * @param url
 * @param data
 * @returns {*}
 */
const post = (url, data) => {
  return request({
    url: url,
    method: 'post',
    data: data
  })
}

export { get, post }
